//
//  GlobalContext.h
//  LiMinProject
//
//  Created by FM123 on 2017/5/9.
//  Copyright © 2017年 LiMin. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GlobalContext : NSObject

typedef void (^faleBlock)(NSString* string);
typedef void (^sureBlock)(void);
////typedef void (^faleBlock)();
+(void)showAlertView:(NSString *)message andSure:(sureBlock)sureBlock andFale:(faleBlock)faleBlock;
//+(BOOL)isLogin;
//+(void)setCookies:(NSString *)userId;
//+(void)showAlertViewWithTitle:(NSString*)title andText:(NSString *)message defaultButton:(NSString*)defaultStr cancelButton:(NSString*)cancelStr andSure:(sureBlock)sureBlock andFale:(faleBlock)faleBlock;
+(void)showAlertView:(NSString *)message;
+(void)showAlertView:(NSString *)message andSure:(sureBlock)sureBlock;
+(void)showAlertView:(NSString *)message yesOrNo:(BOOL)yesOrNo;
//+(void)showTextToast:(NSString *)text view:(UIView *)view delay:(int)second;
//
//+(BOOL)validateMobile:(NSString *)mobileNum;
//+(BOOL) NSStringIsValidEmail:(NSString *)checkString;
//+(NSString *)getId:(int)length;
//
//+(BOOL)contains:(NSString *)str1 str2:(NSString *)str2;
//+(NSString *)getUserId;
//+(CGRect)customFrame:(CGRect)frame x:(int)x y:(int)y width:(int)width height:(int)height;
//
//
//+(void)startUnuploadTasks;
//
//+(void)hide;
//+(void)makeToastActivity:(UIView *)view;
//
////+(void)updateLocation;
////+(BOOL)isOpenCity;
////请求加载动画
//+(void)makeBeginActivity;
//+(void)endActive;
//是否授权摄像头
+(void)isAllowdOpenCameraSure:(sureBlock)sureBlock andFale:(faleBlock)faleBlock;;
+(void)isAllowdGetPhotoSure:(sureBlock)sureBlock andFale:(faleBlock)faleBlock;
+(void)popBackToViewControllerWithController:(UIViewController *)controller andIndex:(int)index;
//获取网络图片宽高
+(CGSize)getImageSizeWithURL:(id)imageURL;
@end
